﻿@model KPIS.GERP.Models.ICM.MasPurchaseRegularMapping

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "editmapping")
{
@Html.HiddenFor(model => model.RegularMapId)
}
@Html.HiddenFor(model => model.RegularId)
@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)

@{
    KPIS.GERP.WEB.GIMS.MasBudgetSourceService.MasBudgetSourceServiceClient serviceBgSource
        = new KPIS.GERP.WEB.GIMS.MasBudgetSourceService.MasBudgetSourceServiceClient();
}

<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลหลัก</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main">
                <div class="control-group">
                    <div class="control-label">
                        @Html.DisplayNameFor(model => model.BgSourceId)
                    </div>
                    <div class="controls">
                        @*@Html.EditorFor(model => model.BgSourceId)*@
                        @Html.DropDownListFor(model => model.BgSourceId, serviceBgSource.SelectList(null)
                                              , new { @class = "chzn-select", data_placeholder="เลือกแหล่งเงิน...", style="display: none;" })
                        @Html.ValidationMessageFor(model => model.BgSourceId)
                    </div>            
                </div>
            </div>
        </div>
    </div>
</div>
